home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
FROMUTS
/
UNIXLIB37B
/
test
/
c
/
unamtest
< prev
next >
Wrap
Text File
|
1992-02-25
|
270b
|
19 lines
#include <stdio.h>
#include <string.h>
#include "sys/unix.h"
int main()
{
int l;
char b[81];
while (fgets(b,256,stdin))
{
l = strlen(b) - 1; if (l >= 40) l = 39; b[l] = 0;
strncpy(b + 40,__uname(b,0),39); b[80] = 0;
memset(b + l,' ',40 - l);
puts(b);
}
}